import random
import _00SetFunc as ss

#7.1构建笛卡尔乘积XY，构建关系R
X={1,2,3,4}
Y={'a','b','c'}
XY=ss.Cartesianproduct(X,Y)
R=random.sample(list(XY),6)
print("XxY=",XY)
print("R=",R)